package com.itheima;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

public class LocalDatetimeDemo {
    public static void main(String[] args) {
        //   1.获取当前时间
        LocalDate localDate = LocalDate.now();
        // 2023-11-15
        System.out.println(localDate);
        LocalDateTime localDateTime = LocalDateTime.now();
        // 2023-11-15T11:58:20.459
        System.out.println(localDateTime);
        LocalTime localTime = LocalTime.now();
        // 12:00:09.225 时:分：秒：毫秒
        System.out.println(localTime);


    }
}
